﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>角色编辑</title>
</head>
<#include "../common/common.html">
<body>
	<article class="page-container aform">
	    <form class="form form-horizontal" id="form"  method="post" enctype="multipart/form-data" >
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>直播间名称：</label>
		<div class="formControls col-xs-6 col-sm-4">
			<input type="text" class="input-text" value="${live.live_name!}" placeholder="" id="live_name" name="live_name">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>直播间地址：</label>
		<div class="formControls col-xs-6 col-sm-4">
			<input type="text" class="input-text" value="${live.live_url!}" placeholder="" id="live_url" name="live_url">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>代理级别：</label>
		<div class="formControls col-xs-6 col-sm-4">
			<input type="text" class="input-text" value="${live.live_agent!}" placeholder="" id="live_agent" name="live_agent">
		</div>
	</div>
	<!-- Start 上传图片--> 
    <div class="row cl">
		<label class="form-label col-xs-4 col-sm-3" >直播间图片：</label>
		<div class="formControls col-xs-8 col-sm-9">                          	
				<div class="fileupload fileupload-new" data-provides="fileupload">
					<div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">	</div>
					<div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; ">
						<img id="picture" src="${ctx}/${live.live_picture!}" alt="" style="max-width: 200px; max-height: 150px; " />
					</div>		
					<div>
						<span class="btn btn-file"><span class="fileupload-new">选择图片</span>
						<span class="fileupload-exists">修改</span>
						<input type="file" class="default" name="live_picture" id="live_picture" /></span>
						<a href="javascript:void();" id="removePic" class="btn fileupload-exists" data-dismiss="fileupload">移除</a>
						<input type="hidden" name="headPortrait" value="">
					</div>
				</div>		
				<span class="label label-important">提示!</span>		
				<span>仅支持png,jpg格式的图片</span>	          
		</div>
	 </div>
	 <!-- End 图片上传-->
	 <input type="hidden" id="id" value="${live.id!}" name="id">
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" id="submitBtn" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
	</form>
	</article>
</body>
<#include "../common/edit.html">
<link rel="stylesheet" type="text/css" href="${ctx}/static/lib/fileupload/bootstrap-fileupload.css" />
<script type="text/javascript" src="${ctx}/static/lib/fileupload/bootstrap-fileupload.js"></script>
 <script type="text/javascript" src="${ctx}/static/js/live/live-edit.js"></script>
</html>